Remove Method

Removes an element from an array.

Syntax



array.Remove index


Notes

The Remove method removes the index element from the array.

The Remove method works with one-dimensional arrays only.


Example

This example removes element 4 from the aNames array

aNames.Remove 4

:


See Also

Dim statement; Array, Join, Split, Ubound functions; Append, IndexOf, Insert, Redim, Pop, Shuffle, Sort, Sortwith methods; ParamArray keyword.